<template>
  <van-popup position="center" :show="value"
             custom-style="width:270px;height:270px;border-radius: 12rpx;" @close="close">
    <!-- <image :src="imageUrl(adInfo.image)" class="bannerImg" @tap="toPage" @longpress="saveCode(adInfo.image)"></image> -->
    <slot></slot>
  </van-popup>
</template>
<script>

export default {
  props: {
    value: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {};
  },

  methods: {
    close() {
      this.$emit("input", false);
    }
  }
};
</script>
<style lang="scss" scoped>
.bannerImg {
  width: 100%;
  height: 93vw;
}
</style>
